﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Layouts/Administration.Master" Inherits="System.Web.Mvc.ViewPage<FacialClub.Models.EmailTemplate>" %>
<%@ Import Namespace="FacialClub.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>

    <% Html.RenderPartial("PartialView/EmailTemplateForm"); %>
    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
<script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="/Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
<script src="/Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript" />
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" type="text/javascript" />

<script type="text/javascript">
    $(function () {
        $("#DatePicker").datepicker({
            showOn: 'button',
            buttonImage: '/Content/Images/calendar.gif',
            buttonImageOnly: true
        });
    });
	</script>

<script src="<%= Url.Content("~/Addons/ckeditor/ckeditor.js") %>" type="text/javascript"></script>
<script type="text/javascript">

    window.onload = function () {

        CKEDITOR.replace('txtEmailTemplateDescription');

    }

 </script>
<script src="<%= Url.Content("~/Content/Js/fck/fckeditor.js") %>" type="text/javascript" ></script>
<script type="text/javascript">
    window.onload = function () {
        var sBasePath = '<%= Url.Content("~/Content/Js/Fck/") %>';

        var oFCKeditor = new FCKeditor('EmailTemplate_EmailTemplateDescription');
        oFCKeditor.BasePath = sBasePath;
        oFCKeditor.ReplaceTextarea();
    }
</script>
</asp:Content>

